using System;
using System.Runtime.InteropServices;
using System.Text;
using memdb_demo.Interop.WrapModels;
using memdb_demo.Utils;

namespace memdb_demo.Models{

    public class OrderRecord:Record{
        
        public string OrderNo{get;set;}
        public char BuySellFlag{get;set;}


        public OrderRecord(){}

        public OrderRecord(StringBuilder wrappedKey, Order wrappedOrder){
            this.Key = wrappedKey ==null ? string.Empty : wrappedKey.ToString();
            this.OrderNo = wrappedOrder.OrderNo==null?string.Empty:wrappedOrder.OrderNo.ConvertToString();
            this.BuySellFlag = (char)(wrappedOrder.BuySellFlag);
        }
    }
}